import fetch from "node-fetch";
import {globalHeader} from "../config/gloabal";

/**
 * 大盘
 */
export const largemarket =async (startDate='',endDate='',cateId=105)=>{
    const url =`http://8.134.116.6/api/v1/goodsDataOverView/promotionCateRatio?sort=0&periodType=30&fromDateCode=${startDate}&toDateCode=${startDate}&cateId=${cateId}&_=${new Date().getTime()}`;
    const fetchResult = await fetch(url,{
        method: 'GET',
        headers:globalHeader
    }) ;
    const data = await fetchResult.json();
    console.log(data);
}